class UploadDataModel {
  String? accessid;
  String? host;
  String? policy;
  String? signature;
  int? expire;
  String? callback;
  String? dir;
  String? saveName;

  UploadDataModel({
    this.accessid,
    this.host,
    this.policy,
    this.signature,
    this.expire,
    this.callback,
    this.dir,
    this.saveName,
  });

  factory UploadDataModel.fromJson(Map<String, dynamic> json) {
    return UploadDataModel(
      accessid: json['accessid'] as String?,
      host: json['host'] as String?,
      policy: json['policy'] as String?,
      signature: json['signature'] as String?,
      expire: json['expire'] as int?,
      callback: json['callback'] as String?,
      dir: json['dir'] as String?,
      saveName: json['save_name'] as String?,
    );
  }

  Map<String, dynamic> toJson() => {
        'accessid': accessid,
        'host': host,
        'policy': policy,
        'signature': signature,
        'expire': expire,
        'callback': callback,
        'dir': dir,
        'save_name': saveName,
      };
}
